package conf

//app 通知
type Lang struct {
	Languages map[string]string
}

func NewLang(args ...interface{}) *Lang{
	lang := new(Lang)
	lang.Languages =map[string]string{
		"zh-CN": "zh-CN",
		"en-US": "en-US",
		"ja-JP": "ja-JP",
		"ko-KR": "ko-KR",
		"zh-TW": "zh-CN",
	}
	return lang
}


// 获取lang
func (this *Lang) GetLangDb(lang string) string {
	var temp string
	var ok   bool
	if temp, ok = this.Languages[lang]; !ok {
		temp = this.Languages["en-US"]
	}
	return temp
}
